﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SynoManager.GUI
{
    public static class ToolStripExtensions
    {
        public static ToolStripButton AddButton(this ToolStripItemCollection items, string text, Image image, EventHandler onClick)
        {
            ToolStripButton button = new ToolStripButton(text, image, onClick);
            button.TextImageRelation = TextImageRelation.ImageAboveText;
            items.Add(button);
            return button;
        }
    }
}
